Optimal. Leaf size=638 \[ \frac{6 f^2 \sqrt{a^2+b^2} (e+f x) \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 f^2 \sqrt{a^2+b^2} (e+f x) \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^3}-\frac{3 f \sqrt{a^2+b^2} (e+f x)^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 f \sqrt{a^2+b^2} (e+f x)^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^2}-\frac{6 f^3 \sqrt{a^2+b^2} \text{PolyLog}\left (4,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^4}+\frac{6 f^3 \sqrt{a^2+b^2} \text{PolyLog}\left (4,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^4}+\frac{6 f^2 (e+f x) \text{PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac{3 f (e+f x)^2 \text{PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{PolyLog}\left (2,e^{c+d x}\right )}{a d^2}-\frac{6 f^3 \text{PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac{6 f^3 \text{PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}+1\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}+1\right )}{a b d}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}+\frac{(e+f x)^4}{4 b f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.27521, antiderivative size = 638, normalized size of antiderivative = 1., number of steps used = 33, number of rules used = 14, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.438, Rules used = {5585, 5450, 3296, 2637, 4182, 2531, 6609, 2282, 6589, 5565, 32, 3322, 2264, 2190} \[ \frac{6 f^2 \sqrt{a^2+b^2} (e+f x) \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 f^2 \sqrt{a^2+b^2} (e+f x) \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^3}-\frac{3 f \sqrt{a^2+b^2} (e+f x)^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 f \sqrt{a^2+b^2} (e+f x)^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^2}-\frac{6 f^3 \sqrt{a^2+b^2} \text{PolyLog}\left (4,-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^4}+\frac{6 f^3 \sqrt{a^2+b^2} \text{PolyLog}\left (4,-\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}\right )}{a b d^4}+\frac{6 f^2 (e+f x) \text{PolyLog}\left (3,-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{PolyLog}\left (3,e^{c+d x}\right )}{a d^3}-\frac{3 f (e+f x)^2 \text{PolyLog}\left (2,-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{PolyLog}\left (2,e^{c+d x}\right )}{a d^2}-\frac{6 f^3 \text{PolyLog}\left (4,-e^{c+d x}\right )}{a d^4}+\frac{6 f^3 \text{PolyLog}\left (4,e^{c+d x}\right )}{a d^4}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}+1\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (\frac{b e^{c+d x}}{\sqrt{a^2+b^2}+a}+1\right )}{a b d}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}+\frac{(e+f x)^4}{4 b f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5585
Rule 5450
Rule 3296
Rule 2637
Rule 4182
Rule 2531
Rule 6609
Rule 2282
Rule 6589
Rule 5565
Rule 32
Rule 3322
Rule 2264
Rule 2190
Rubi steps
\begin{align*} \int \frac{(e+f x)^3 \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac{\int (e+f x)^3 \cosh (c+d x) \coth (c+d x) \, dx}{a}-\frac{b \int \frac{(e+f x)^3 \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx}{a}\\ &=\frac{\int (e+f x)^3 \text{csch}(c+d x) \, dx}{a}+\frac{\int (e+f x)^3 \, dx}{b}-\frac{\left (a^2+b^2\right ) \int \frac{(e+f x)^3}{a+b \sinh (c+d x)} \, dx}{a b}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\left (2 \left (a^2+b^2\right )\right ) \int \frac{e^{c+d x} (e+f x)^3}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{a b}-\frac{(3 f) \int (e+f x)^2 \log \left (1-e^{c+d x}\right ) \, dx}{a d}+\frac{(3 f) \int (e+f x)^2 \log \left (1+e^{c+d x}\right ) \, dx}{a d}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}-\frac{\left (2 \sqrt{a^2+b^2}\right ) \int \frac{e^{c+d x} (e+f x)^3}{2 a-2 \sqrt{a^2+b^2}+2 b e^{c+d x}} \, dx}{a}+\frac{\left (2 \sqrt{a^2+b^2}\right ) \int \frac{e^{c+d x} (e+f x)^3}{2 a+2 \sqrt{a^2+b^2}+2 b e^{c+d x}} \, dx}{a}+\frac{\left (6 f^2\right ) \int (e+f x) \text{Li}_2\left (-e^{c+d x}\right ) \, dx}{a d^2}-\frac{\left (6 f^2\right ) \int (e+f x) \text{Li}_2\left (e^{c+d x}\right ) \, dx}{a d^2}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}+\frac{6 f^2 (e+f x) \text{Li}_3\left (-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{Li}_3\left (e^{c+d x}\right )}{a d^3}+\frac{\left (3 \sqrt{a^2+b^2} f\right ) \int (e+f x)^2 \log \left (1+\frac{2 b e^{c+d x}}{2 a-2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d}-\frac{\left (3 \sqrt{a^2+b^2} f\right ) \int (e+f x)^2 \log \left (1+\frac{2 b e^{c+d x}}{2 a+2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d}-\frac{\left (6 f^3\right ) \int \text{Li}_3\left (-e^{c+d x}\right ) \, dx}{a d^3}+\frac{\left (6 f^3\right ) \int \text{Li}_3\left (e^{c+d x}\right ) \, dx}{a d^3}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}-\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{6 f^2 (e+f x) \text{Li}_3\left (-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{Li}_3\left (e^{c+d x}\right )}{a d^3}+\frac{\left (6 \sqrt{a^2+b^2} f^2\right ) \int (e+f x) \text{Li}_2\left (-\frac{2 b e^{c+d x}}{2 a-2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d^2}-\frac{\left (6 \sqrt{a^2+b^2} f^2\right ) \int (e+f x) \text{Li}_2\left (-\frac{2 b e^{c+d x}}{2 a+2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d^2}-\frac{\left (6 f^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3(-x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4}+\frac{\left (6 f^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3(x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}-\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{6 f^2 (e+f x) \text{Li}_3\left (-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{Li}_3\left (e^{c+d x}\right )}{a d^3}+\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 f^3 \text{Li}_4\left (-e^{c+d x}\right )}{a d^4}+\frac{6 f^3 \text{Li}_4\left (e^{c+d x}\right )}{a d^4}-\frac{\left (6 \sqrt{a^2+b^2} f^3\right ) \int \text{Li}_3\left (-\frac{2 b e^{c+d x}}{2 a-2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d^3}+\frac{\left (6 \sqrt{a^2+b^2} f^3\right ) \int \text{Li}_3\left (-\frac{2 b e^{c+d x}}{2 a+2 \sqrt{a^2+b^2}}\right ) \, dx}{a b d^3}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}-\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{6 f^2 (e+f x) \text{Li}_3\left (-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{Li}_3\left (e^{c+d x}\right )}{a d^3}+\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 f^3 \text{Li}_4\left (-e^{c+d x}\right )}{a d^4}+\frac{6 f^3 \text{Li}_4\left (e^{c+d x}\right )}{a d^4}-\frac{\left (6 \sqrt{a^2+b^2} f^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (\frac{b x}{-a+\sqrt{a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a b d^4}+\frac{\left (6 \sqrt{a^2+b^2} f^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (-\frac{b x}{a+\sqrt{a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a b d^4}\\ &=\frac{(e+f x)^4}{4 b f}-\frac{2 (e+f x)^3 \tanh ^{-1}\left (e^{c+d x}\right )}{a d}-\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d}+\frac{\sqrt{a^2+b^2} (e+f x)^3 \log \left (1+\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d}-\frac{3 f (e+f x)^2 \text{Li}_2\left (-e^{c+d x}\right )}{a d^2}+\frac{3 f (e+f x)^2 \text{Li}_2\left (e^{c+d x}\right )}{a d^2}-\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{3 \sqrt{a^2+b^2} f (e+f x)^2 \text{Li}_2\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^2}+\frac{6 f^2 (e+f x) \text{Li}_3\left (-e^{c+d x}\right )}{a d^3}-\frac{6 f^2 (e+f x) \text{Li}_3\left (e^{c+d x}\right )}{a d^3}+\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 \sqrt{a^2+b^2} f^2 (e+f x) \text{Li}_3\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^3}-\frac{6 f^3 \text{Li}_4\left (-e^{c+d x}\right )}{a d^4}+\frac{6 f^3 \text{Li}_4\left (e^{c+d x}\right )}{a d^4}-\frac{6 \sqrt{a^2+b^2} f^3 \text{Li}_4\left (-\frac{b e^{c+d x}}{a-\sqrt{a^2+b^2}}\right )}{a b d^4}+\frac{6 \sqrt{a^2+b^2} f^3 \text{Li}_4\left (-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )}{a b d^4}\\ \end{align*}
Mathematica [A] time = 2.47645, size = 802, normalized size = 1.26 \[ \frac{a x \left (4 e^3+6 f x e^2+4 f^2 x^2 e+f^3 x^3\right ) d^4+4 \sqrt{a^2+b^2} \left (2 e^3 \tanh ^{-1}\left (\frac{a+b e^{c+d x}}{\sqrt{a^2+b^2}}\right ) d^3-f^3 x^3 \log \left (\frac{e^{c+d x} b}{a-\sqrt{a^2+b^2}}+1\right ) d^3-3 e f^2 x^2 \log \left (\frac{e^{c+d x} b}{a-\sqrt{a^2+b^2}}+1\right ) d^3-3 e^2 f x \log \left (\frac{e^{c+d x} b}{a-\sqrt{a^2+b^2}}+1\right ) d^3+f^3 x^3 \log \left (\frac{e^{c+d x} b}{a+\sqrt{a^2+b^2}}+1\right ) d^3+3 e f^2 x^2 \log \left (\frac{e^{c+d x} b}{a+\sqrt{a^2+b^2}}+1\right ) d^3+3 e^2 f x \log \left (\frac{e^{c+d x} b}{a+\sqrt{a^2+b^2}}+1\right ) d^3-3 f (e+f x)^2 \text{PolyLog}\left (2,\frac{b e^{c+d x}}{\sqrt{a^2+b^2}-a}\right ) d^2+3 f (e+f x)^2 \text{PolyLog}\left (2,-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right ) d^2+6 e f^2 \text{PolyLog}\left (3,\frac{b e^{c+d x}}{\sqrt{a^2+b^2}-a}\right ) d+6 f^3 x \text{PolyLog}\left (3,\frac{b e^{c+d x}}{\sqrt{a^2+b^2}-a}\right ) d-6 e f^2 \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right ) d-6 f^3 x \text{PolyLog}\left (3,-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right ) d-6 f^3 \text{PolyLog}\left (4,\frac{b e^{c+d x}}{\sqrt{a^2+b^2}-a}\right )+6 f^3 \text{PolyLog}\left (4,-\frac{b e^{c+d x}}{a+\sqrt{a^2+b^2}}\right )\right )-4 b \left (2 d^3 \tanh ^{-1}(\cosh (c+d x)+\sinh (c+d x)) (e+f x)^3+3 f \left (2 \text{PolyLog}(4,-\cosh (c+d x)-\sinh (c+d x)) f^2-2 d (e+f x) \text{PolyLog}(3,-\cosh (c+d x)-\sinh (c+d x)) f+d^2 (e+f x)^2 \text{PolyLog}(2,-\cosh (c+d x)-\sinh (c+d x))\right )-3 f \left (2 \text{PolyLog}(4,\cosh (c+d x)+\sinh (c+d x)) f^2-2 d (e+f x) \text{PolyLog}(3,\cosh (c+d x)+\sinh (c+d x)) f+d^2 (e+f x)^2 \text{PolyLog}(2,\cosh (c+d x)+\sinh (c+d x))\right )\right )}{4 a b d^4} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.734, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( fx+e \right ) ^{3}\cosh \left ( dx+c \right ){\rm coth} \left (dx+c\right )}{a+b\sinh \left ( dx+c \right ) }}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 3.41837, size = 3588, normalized size = 5.62 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]